<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_foo_table.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:03 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="favicon.ico"> <link href="/static/console/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/static/console/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/static/console/css/plugins/footable/footable.core.css" rel="stylesheet">
    <link href="/static/console/css/animate.min.css" rel="stylesheet">
    <link href="/static/console/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="/static/console/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <script src="/static/console/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/console/js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="/static/console/js/subpost.js"></script>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
            <!-- <div class="alert alert-info">
                31232
            </div> -->
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                       <!--  <div class="ibox-title">
                            <h5>搜索</h5>
                        </div> -->
                        <div class="ibox-content">
                            <form role="form" class="form-inline" method="GET">
                                <div class="form-group">
                                    状态&nbsp;
                                    <a href="/console/activity/?status=" class="{if $Think.get.status == ''}label-primary{/if} label" >不限</a>
                                    <a href="/console/activity/?status=1" class="{if $Think.get.status == '1'}label-primary{/if} label" >启用</a>
                                    <a href="/console/activity/?status=2" class="{if $Think.get.status == '2'}label-primary{/if} label">禁用</a>
                                </div><br/><br/>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>活动列表 <a href="{:url('console/activity/index')}" type="button" class="btn btn-white btn-xs"><i class="fa fa-refresh"></i> 刷新</a></h5>
                            <div class="ibox-tools">
                                <a href="/console/activity/add" class="btn btn-primary btn-xs"><i class="glyphicon glyphicon-plus"></i> 添加活动</a>
                            </div>
                        </div>
                        <div class="ibox-content">

                            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="8">
                                <thead>
                                <tr>

                                    <th data-hide="all">活动名称</th>
                                    <th data-hide="all">活动时间</th>
                                    <th data-hide="all">状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {foreach $list as $key => $val}
                                <tr>
                                    <td>{$val.title}</td>
                                    <td>{:date('Y-m-d', $val['create_at'])}</td>
                                    <td>{$val.status == 1? '启用' : '禁用'}</td>
                                    <td>
                                        <a href="{:url('console/activity/edit', array('id'=>$val['id']))}" class="btn btn-primary btn-xs">编辑</a>
                                        <a href="javascript:void(0)" data-url="{:url('console/activity/delete', array('id'=>$val['id']))}" onclick="del(this)" class="btn btn-danger btn-xs">删除</a>
                                    </td>
                                </tr>
                                {/foreach}
                                </tbody>
                            </table>
                            <div class="btn-group">
                                {$list->render()}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
</body>

</html>
